package com.joker.orange.service;

import com.joker.orange.domain.AdvertisingPop;
import com.joker.orange.domain.vo.AdvertisingPopVo;
import com.joker.orange.domain.bo.AdvertisingPopBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 广告弹窗Service接口
 *
 * @author Joker
 */
public interface IAdvertisingPopService {

    /**
     * 查询广告弹窗
     */
    AdvertisingPopVo queryById(Long id);

    /**
     * 查询广告弹窗列表
     */
    TableDataInfo<AdvertisingPopVo> queryPageList(AdvertisingPopBo bo, PageQuery pageQuery);

    /**
     * 查询广告弹窗列表
     */
    List<AdvertisingPopVo> queryList(AdvertisingPopBo bo);

    /**
     * 新增广告弹窗
     */
    Boolean insertByBo(AdvertisingPopBo bo);

    /**
     * 修改广告弹窗
     */
    Boolean updateByBo(AdvertisingPopBo bo);

    /**
     * 校验并批量删除广告弹窗信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
